package com.mingdong.first.qiaojie;

public class Computer {

	private Brand brand;
	
	public Computer(Brand brand){
		this.brand = brand;
	}
	public void sale(){
		brand.sale();
	}
	
}

class DestDot extends Computer{

	public DestDot(Brand brand) {
		super(brand);
	}
}
class Pad extends Computer{

	public Pad(Brand brand) {
		super(brand);
	}
}	